#! /bin/bash

#macOS版本
go build -o bin/macos/dbrs ./main.go
go build -o bin/macos/dbrsctl ./dbrsctl/main.go

#Linux版本
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/linux/dbrs ./main.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/linux/dbrsctl ./dbrsctl/main.go
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/linux/dbrsctl.exe ./dbrsctl/main.go

#Windows版本
#CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/windows/dbrs.exe ./main.go
#CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/windows/dbrsctl.exe ./dbrsctl/main.go
